import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import FrontIndex from './page/front/index/index.jsx'
import FrontProduct from './page/front/product/product.jsx'
import User from '../src/page/front/user/user.jsx'
import BackIndex from './page/index/backIndex.jsx'
import { HashRouter, BrowserRouter, Route, Link, Redirect, Switch } from 'react-router-dom'
import registerServiceWorker from './registerServiceWorker'

ReactDOM.render(
  (<BrowserRouter>
    <div>
      {/* <ul>
        <li>
          <Link to='/'>/</Link>
        </li>
        <li>
          <Link to='/admin'>/admin</Link>
        </li>
      </ul> */}
      {/* <Redirect to='/2222' /> */}
      <Switch>
        <Route path='/front' exact component={FrontIndex} />
        {/* <Route path='/user' exact component={User} /> */}
        <Route path='/admin' exact component={BackIndex} />
      </Switch>
    </div>
  </BrowserRouter>),
  document.getElementById('root')
)
registerServiceWorker()
